package cn.zebra.dev.member.module.client.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class LoginVO {
    @ApiModelProperty("手机号")
    @NotBlank(message = "请输入手机号!")
    @Pattern(regexp = "0?1[0-9]{10}", message = "请输入正确的手机号!")
    private String phone;

    @ApiModelProperty("密码")
    @NotBlank(message = "请输入密码!")
    private String password;

}
